package com.image;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Person extends User{

    private String hand;

    public String getHand() {
        return hand;
    }

    public void setHand(String hand) {
        this.hand = hand;
    }

    public int printPersonResult(String personHand){
        int person = 0;
        if (personHand.equals("石头")){
            person = 1;
        }else if (personHand.equals("剪刀")){
            person = 2;
        }else if (personHand.equals("布")){
            person = 3;
        }else {
            log.info("输入出错，本局不算");
        }
        return person;
    }
}
